const Mock=require("mockjs");
const data =Mock.mock({
    'goods|20': [{
        id: '@id',
        img: '@image(100x100,@color)',
        title: '@ctitle(10,15)',
        'num|50-500': 0,
        name:"@cname"
    }]
})
module.exports = {
    devServer:{
        before(app)
        {
            app.get("/goods",(req,res)=>
            {
                res.send(data.goods);
            })
        }
    }
}